package shapes;

public abstract class Shape{
	public final static double PI = Math.PI;
	public abstract double getPerimeter();
	public abstract double getArea();
	
	public static double sumAllArea(Shape[] shapes){
		double sumAllArea = 0;
		for (Shape e : shapes) {
			sumAllArea += e.getArea();
		}
		return sumAllArea;
		}

		public static double sumAllperimeter(Shape[] shapes){
			double sumAllperimeter = 0;
			for (Shape e : shapes) {
				sumAllperimeter += e.getPerimeter();
			}
		
		return sumAllperimeter;
		}
}

